package Thread.mq;

/**
 * Created by sunyuming on 18/10/31.
 */
public class Common {
    protected static final int LEN = 10000000;

    protected static volatile long st;
    protected static volatile long ed;

    protected static final int threadCount = 4;

    protected static class MyInteger{
        public Integer mem;
        public MyInteger(Integer integer) {
            mem = integer;
        }

        public Boolean last() {
            return mem == LEN * threadCount;
        }
    }
}
